package com.lzc.tlmail.tlmailorder.feign;

import com.lzc.tlmail.tlmailorder.vo.OrderCartSkuvo;
import com.lzc.tlmail.tlmailorder.vo.OrderItemvo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

import java.math.BigDecimal;
import java.util.List;

/**
 * @author lzc
 * @create 2020-10-20 17:11
 */
@FeignClient("cartservice")
public interface CartFeignService {


    /**
     * 获得购物车项
     * @return
     */
    @GetMapping("/getOrderCartItems")
     List<OrderCartSkuvo> getCartItems();

    /**
     * 删除购物车项
     * @param skuId
     * @return
     */
    @GetMapping("/skuDel")
    String skuDel(@RequestParam("skuId")Long skuId);
}
